package com.cg.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 图片表(DmImage)实体类
 *
 * @author makejava
 * @since 2023-11-07 20:07:15
 */
@TableName("dm_image")
public class DmImage implements Serializable {

    @TableId
    private Long id;
    /**
     * 图片URL
     */
    private String imgUrl;
    /**
     * 关联表ID
     */
    private Integer targetId;
    /**
     * 顺序
     */
    private Integer sort;
    /**
     * 图片类型（0:无类型 1:轮播图 2:海报图）
     */
    private Integer type;
    /**
     * 图片分类（0：用户头像 1：商品图片）
     */
    private Integer category;
    /**
     * 创建时间
     */
    private Date createdTime;
    /**
     * 更新时间
     */
    private Date updatedTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Integer getTargetId() {
        return targetId;
    }

    public void setTargetId(Integer targetId) {
        this.targetId = targetId;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }



}

